package com.example.rule.constant;

import com.example.rule.condition.factory.AbstractConditionFactory;
import com.example.rule.expression.factory.AbstractRepFactory;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Jason - Chusifeng
 * @version 1.0.0
 * @ClassName Constant.java
 * @PackageName com\welab\vb\payment\transaction\rule\constant\Constant.java
 * @Description 常量
 * @createTime 2022年10月10日 10:48:42
 */
public class RuleConstant {
    public static final String  DEFAULT_STRING = "default";

    public static final String RULE_CACHE_KEY ="ruleKey";
    /**
     * 缓存pymt_rule_type表数据 key
     */
    public static final String RULE_TYPE_CACHE_KEY = "ruleTypeKey";
    /**
     * 缓存pymt_rule_operator表数据 key
     */
    public static final String RULE_OPERATOR_CACHE_KEY = "ruleOperatorKey";

    /**
     * 配置rule的representation factory
     */

    public static final Map<Integer, AbstractRepFactory> CONFIG_REP = new ConcurrentHashMap<>();

    /**
     * 配置rule的condition factory
     */
    public static final Map<String, AbstractConditionFactory> CONFIG_COND = new ConcurrentHashMap<>();
}
